]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Fix PopupImageMenuItem
authorJavier Hernández <jhernandez@emergya.com>
Wed, 23 Jul 2014 08:24:18 +0000 (10:24 +0200)
committerJavier Hernández <jhernandez@emergya.com>
Wed, 23 Jul 2014 08:24:18 +0000 (10:24 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=733540

js/ui/popupMenu.js

index c9c54c84aafd97b9344785f3fb2f7bfb2cb65d4b..36d7f845e01cc2b7d08ac9cc63d1663e6c29d44c 100644 (file)
@@ -378,9 +378,9 @@ const PopupImageMenuItem = new Lang.Class({
         this.parent(params);
 
         this.label = new St.Label({ text: text });
-        this.addActor(this.label);
+        this.actor.add_child(this.label);
         this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
-        this.addActor(this._icon, { align: St.Align.END });
+        this.actor.add_child(this._icon, { align: St.Align.END });
 
         this.setIcon(iconName);
     },